
{% extends "base.html" %}

{% block title %}
    权限管理-关联职位
{% endblock %}
{% block content %}
        <div id="page-wrapper">
        <div class="container-fluid">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">{{perm.per_name}}-关联职位</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <form method="post" action="">
                        <input type="hidden" value="{{ csrf_token() }}" name="csrf_token">
                        <table class="table">
                            <thead>
                            <tr>
                                <th>选择</th>
                                <th>职位名称</th>
                                <th>职位部门</th>
                            </tr>
                            </thead>
                            <tbody>
                            {% for one in position %}
                            <tr>
                                <td>

                                    <input type="checkbox" {% if one in perm.p_position %} checked {% endif %} name="position_ids" value="{{ one.id }}">

                                </td>
                                <td>{{ one.p_name }}</td>
                                <td>{{ one.p_depart.d_name }}</td>
                            </tr>
                            {% endfor %}


                            </tbody>
                        </table>
                        <button class="btn btn-primary btn-block">提交</button>
                    </form>
                </div>
                <!-- /.col-lg-12 -->
            </div>
        </div>
        <!-- /.container-fluid -->
    </div>
{% endblock %}